# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Language.V1.Model.PartOfSpeech do
  @moduledoc """
  Represents part of speech information for a token. Parts of speech are as defined in http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf

  ## Attributes

  *   `aspect` (*type:* `String.t`, *default:* `nil`) - The grammatical aspect.
  *   `case` (*type:* `String.t`, *default:* `nil`) - The grammatical case.
  *   `form` (*type:* `String.t`, *default:* `nil`) - The grammatical form.
  *   `gender` (*type:* `String.t`, *default:* `nil`) - The grammatical gender.
  *   `mood` (*type:* `String.t`, *default:* `nil`) - The grammatical mood.
  *   `number` (*type:* `String.t`, *default:* `nil`) - The grammatical number.
  *   `person` (*type:* `String.t`, *default:* `nil`) - The grammatical person.
  *   `proper` (*type:* `String.t`, *default:* `nil`) - The grammatical properness.
  *   `reciprocity` (*type:* `String.t`, *default:* `nil`) - The grammatical reciprocity.
  *   `tag` (*type:* `String.t`, *default:* `nil`) - The part of speech tag.
  *   `tense` (*type:* `String.t`, *default:* `nil`) - The grammatical tense.
  *   `voice` (*type:* `String.t`, *default:* `nil`) - The grammatical voice.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :aspect => String.t() | nil,
          :case => String.t() | nil,
          :form => String.t() | nil,
          :gender => String.t() | nil,
          :mood => String.t() | nil,
          :number => String.t() | nil,
          :person => String.t() | nil,
          :proper => String.t() | nil,
          :reciprocity => String.t() | nil,
          :tag => String.t() | nil,
          :tense => String.t() | nil,
          :voice => String.t() | nil
        }

  field(:aspect)
  field(:case)
  field(:form)
  field(:gender)
  field(:mood)
  field(:number)
  field(:person)
  field(:proper)
  field(:reciprocity)
  field(:tag)
  field(:tense)
  field(:voice)
end

defimpl Poison.Decoder, for: GoogleApi.Language.V1.Model.PartOfSpeech do
  def decode(value, options) do
    GoogleApi.Language.V1.Model.PartOfSpeech.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.Language.V1.Model.PartOfSpeech do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
